import './assets/main.scss'
import { createApp } from 'vue'
import ElementPlus from'element-plus'
import 'element-plus/dist/index.css'
import App from './App.vue'
//后面不用写index.js 因为默认找到router文件夹下的index.js
import router from '@/router'

//导入pinia
import {createPinia} from 'pinia'

import { createPersistedState } from 'pinia-persistedstate-plugin'

const app = createApp(App);
const pinia = createPinia();
//得到persist实例 持久化
const persist = createPersistedState();
pinia.use(persist);
app.use(pinia);
app.use(router);
app.use(ElementPlus);
app.mount('#app')
